﻿using System;
using System.Collections.Generic;
using System.Text;

namespace CentrifugalSealCalc
{
    public class Impeller : PumpingElement
    {
        public double A1;        // Based on pump speed and curve
        public double A2;        // Based on pump speed and curve
        public double A3 = 1;    // Based on pump speed and curve

        public double Kex = 1;          // constant for expellers
        public double Q;
        /// <summary>
        /// Standard diameter (mm)
        /// </summary>
        public double Ds;

        public EImpellerType ImpellerType { get; private set; }

        public void SetImpellerType(EImpellerType type)
        {
            ImpellerType = type;
            if (type == EImpellerType.Closed)
            {
                A1 = 7350 * Global.H0;
                A2 = 7350 * (Global.H0 - Global.Hbep) / Global.Qbep;
            }
            else
            {
                A1 = 6760 * Global.H0;
                A2 = 6860 * (Global.H0 - Global.Hbep) / Global.Qbep;
            }
        }
    }
}
